package com.xhai.common.domain.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xhai
 * @description 分页查询响应基类
 * @date 2025/5/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页查询响应基类")
public class PageResponseEntity<T> {
    /**
     * 数据
     */
    @Schema(description = "数据")
    private List<T> rows;

    /**
     * 总数
     */
    @Schema(description = "总数")
    private Long total;

    /**
     * 当前页
     */
    @Schema(description = "当前页")
    private Long currentPage;

    /**
     * 每页大小
     */
    @Schema(description = "每页大小")
    private Long pageSize;
}
